import { createAction } from 'redux-actions'

// 添加商品
export const addProductToCart = createAction('addProductToCart')
// 添加商品到store
export const addProductToLocalCart = createAction('addProductToLocalCart')

// 获取购物车列表
export const loadCarts = createAction('loadCarts')
// 获取购物车列表到store
export const saveCarts = createAction('saveCarts')

// 删除商品
export const deleteCarts = createAction('deleteCarts')
// 删除store中的商品
export const deleteLocalCarts = createAction('deleteLocalCarts')


// 修改商品数量
export const changeProductCount = createAction('changeProductCount')
// 修改store中商品的数量
export const changeLocalProductCount = createAction('changeLocalProductCount')

